# coding:utf-8

class Test(object):
    def __init__(self,a):
        self.a = a

    def run(self):
        print('run')
        self.jump()
        self.sleep()#可以调用classmethod之后的

    @classmethod
    def jump(cls):
        print('jump')
        #cls.run() #不能调用classmethod之前的类函数
    @staticmethod
    def sleep():

        print('I want to sleep')
t = Test('a')
t.run()
#Test.jump()
#print('-----')
#Test.sleep()
#t.sleep()

class Test1(object):
    def __init__(self,name):
        self.__name = name

    @property
    def name(self):
        return self.__name
    @name.setter
    def name(self,value):
        self.__name =value

t1 = Test1(name='dewei')
print(t1.name)
t1.name ='小慕'
print(t1.name)